import type { VisibleResourceVO } from '@vben/stores';

import { requestClient } from '#/api/request';
import { ServicePrefixEnum } from '#/enums/commonEnum';
/**
 * 获取用户所有菜单
 */
export async function findResource(applicationId?: null | string) {
  return requestClient.get<VisibleResourceVO>(
    `${ServicePrefixEnum.OAUTH}/anyone/visible/resource`,
    { params: { type: 'LAMP_WEB_PRO_VBEN5', applicationId } },
  );
}
